/**
 * 接口方法
*/
// 品牌顾问 列表获取、删除、排序
export const adviser = {
    get: (data) => {
        return window.vm.$http.post('/admin/yt_car/index.php?act=yt_car&op=get_consultantList', data);
    },
    del: (data) => {
        return window.vm.$http.post('/admin/yt_car/index.php?act=consultManagement&op=deleteGroup', data);
    },
    update: (data) => {
        return window.vm.$http.post('/admin/yt_car/index.php?act=yt_car&op=sort_consultant', data);
    },
    getBrand: data => {
        return window.vm.$http.post('/admin/store/index.php?act=getBrand&op=selectBrand', data);
    }
}

// 品牌顾问 新增、编辑
export const adviserSave = {
    add: (data) => {
        return window.vm.$http.post('/admin/yt_car/index.php?act=yt_car&op=add_consultant', data);
    },
    update: (data) => {
        return window.vm.$http.post('/admin/yt_car/index.php?act=yt_car&op=update_consultant', data);
    },
}